home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / tcl / StrMatch.man < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Tcl_StringMatch       C Library Procedures        Tcl_StringMatch
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      Tcl_StringMatch - test whether a string matches a pattern
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<ttccll..hh>>
  15.  
  16.      int
  17.      TTccll__SSttrriinnggMMaattcchh(_s_t_r_i_n_g, _p_a_t_t_e_r_n)
  18.  
  19. AARRGGUUMMEENNTTSS
  20.      char*_s_t_r_i_n_g(in)
  21.      String to test.
  22.  
  23.      char*_p_a_t_t_e_r_n(in)
  24.      Pattern to match against string.  May contain special  char-
  25.      acters from the set *?\[].
  26. _________________________________________________________________
  27.  
  28.  
  29. DDEESSCCRRIIPPTTIIOONN
  30.      This utility procedure determines whether a string matches a
  31.      given  pattern.  If it does, then TTccll__SSttrriinnggMMaattcchh returns 1.
  32.      Otherwise TTccll__SSttrriinnggMMaattcchh returns 0.  The algorithm used for
  33.      matching  is the same algorithm used in the ``string match''
  34.      Tcl command and is similar to the algorithm used by  the  C-
  35.      shell  for file name matching;  see the Tcl manual entry for
  36.      details.
  37.  
  38.  
  39. KKEEYYWWOORRDDSS
  40.      match, pattern, string
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0                                                     1
  64.  
  65.  
  66.  
  67.